
import clonedeep from 'lodash.clonedeep'
import difference from 'lodash.difference'
import findindex from 'lodash.findindex'
import findkey from 'lodash.findkey'
import get from 'lodash.get'
import moment from 'moment'

import { exportFile, toggleSending, handlePage, getQinuiToken, uploadImage, requestList } from '@/utils/util'

export default function (_, inject) {
  inject('clonedeep', clonedeep)
  inject('difference', difference)
  inject('findindex', findindex)
  inject('findkey', findkey)
  inject('get', get)
  inject('moment', moment)
  // custom function
  inject('exportFile', exportFile)
  inject('toggleSending', toggleSending)
  inject('handlePage', handlePage)
  inject('getQinuiToken', getQinuiToken)
  inject('uploadImage', uploadImage)
  inject('requestList', requestList)
}
